package com.carryGo.entity;

/**
 * ClassName:ShoppCart
 * package:com.carryGo.entity
 * Description:
 *
 * @Date:2020/8/28 13:54
 * @Author: tank_黄志凌
 */
public class ShoppCart {
    private int id;//编号
    private String commName;//商品名
    private String merchantName;//商家名
    private String userName;//购买人
    private int number;//商品数量
    private double price;//单价
    private double sum;//总价
    private String pic;//图片地址

    public ShoppCart() {
    }

    public ShoppCart(String commName, String merchantName, String userName, int number, double price, double sum, String pic) {
        this.commName = commName;
        this.merchantName = merchantName;
        this.userName = userName;
        this.number = number;
        this.price = price;
        this.sum = sum;
        this.pic = pic;
    }

    public ShoppCart(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getSum() {
        return sum;
    }

    public void setSum(double sum) {
        this.sum = sum;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    @Override
    public String toString() {
        return "ShoppCart{" +
                "id=" + id +
                ", commName='" + commName + '\'' +
                ", merchantName='" + merchantName + '\'' +
                ", userName='" + userName + '\'' +
                ", number=" + number +
                ", price=" + price +
                ", sum=" + sum +
                ", pic='" + pic + '\'' +
                '}';
    }
}
